#ifndef CHECKPOINTSTEPCALCULATOR_H
#define CHECKPOINTSTEPCALCULATOR_H

#include "StepCalculator.h"
#include "CheckpointReachable.h"
#include "CheckpointStep.h"
#include "Activatable.h"

class CheckpointStepCalculator: public StepCalculator
{
public:
	CheckpointStepCalculator();
	virtual ~CheckpointStepCalculator();

	void SetActivator(GameObject* checkpoint);

	virtual void GenerateSteps(Board& board);
	virtual void Execute();

protected:

private:
	void Clear();
	void AddStep(GameObject* object, CheckpointReachable* checkpointreachable);

	GameObject* activatableObject;
	Activatable* activatableInterface;
	std::list<Step*> steps;
};

#endif //CHECPOINTSTEPCALCULATOR_H
